# database operations like softdelete
module Db
  # database operations like softdelete
  module Cacheable
    def self.included(base)
      base.send :include, InstanceMethods
      base.extend ClassMethods
    end

    # instance Methode
    module InstanceMethods
      def redis
        Redis.current
      end
    end

    # class Methode
    module ClassMethods
      def redis
        Redis.current
      end
    end
  end
end
